﻿#include "ParaWidgetInterfaceOperator.h"

#include <QAction>

namespace EventOper
{
    ParaWidgetInterfaceOperator::ParaWidgetInterfaceOperator()
    {

    }

    ParaWidgetInterfaceOperator::~ParaWidgetInterfaceOperator()
    {

    }

    void ParaWidgetInterfaceOperator::eventProcess(int index, QHash<int, QVariant> value)
    {
        Q_UNUSED(index);
        Q_UNUSED(value);
    }

    void ParaWidgetInterfaceOperator::preArgs()
    {
        QAction* current = dynamic_cast<QAction*>(_emitter);
        if (current == nullptr)return;

        this->argValue(objID_String, _objID);
        _senderName = current->objectName();
    }
}
